import {request} from "../utils/index.js";

export function getAcademyInfo(name) {
    return request({
        url: `/getAcademyInfo?name=${name}`,
        method : "get"
    })
}

export function addAcademyInfo(data) {
    return request({
        url: "/addAcademyInfo",
        method : "post",
        data
    })
}

export function deleteAcademyInfo(data) {
    return request({
        url: "/deleteAcademy",
        method : "delete",
        data
    })
}

export function updateAcademyInfo(data) {
    return request({
        url: "/updateAcademy",
        method : "post",
        data
    })
}

export function batchDeleteAcademyInfo(data) {
    return request({
        url: "/batchDeleteAcademy",
        method : "delete",
        data
    })
}